package models

type Passenger struct {
	FlightNumber int    `gorm:"primaryKey;column:flight_number"` // 联合主键
	UserID       int    `gorm:"primaryKey"`                      // 联合主键
	IdentityCard string `gorm:"not null"`                        // 身份证
	ContactInfo  string `gorm:"not null"`                        // 联系方式

	//Flight Flight `gorm:"foreignKey:FlightNumber"` // 关联航班
	//User   User   `gorm:"foreignKey:UserID"`       // 关联用户
}
